import moment  from 'moment'
import axios from "axios";
export const getNowTime = () => {
    let time = moment().format("YYYY-MM-DD HH:mm:ss")
    setInterval(() => {
      time = moment().format("YYYY-MM-DD HH:mm:ss")
    },1000)
    return time;
  }
  export const getNowWeek = () => {
    let week = moment().day()
    if(week === 0){
        week = '星期日'
    }
    if(week === 1){
        week = '星期一'
    }
    if(week === 2){
        week = '星期二'
    }
    if(week === 3){
        week = '星期三'
    }
    if(week === 4){
        week = '星期四'
    }
    if(week === 5){
        week = '星期五'
    }
    if(week === 6){
        week = '星期六'
    }
    return week;
  }
